<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改俱乐部剑道')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-strip-edit" th:object="${cmsClubStrip}">
            <input name="stripid" th:field="*{stripid}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">俱乐部剑道编号：</label>
                <div class="col-sm-8">
                    <input name="stripcode" th:field="*{stripcode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剑道类型：</label>
                <div class="col-sm-8">
                    <select name="striptype" class="form-control m-b" th:with="type=${@dict.getType('club_jd_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{striptype}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">部件：</label>
                <div class="col-sm-8">
                    <select name="parts" class="form-control m-b" th:with="type=${@dict.getType('club_jd_part')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{parts}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块：</label>
                <div class="col-sm-8">
                    <input name="model" th:field="*{model}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">编号：</label>
                <div class="col-sm-8">
                    <input name="SN" th:field="*{SN}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">部件厂家：</label>
                <div class="col-sm-8">
                    <input name="supplier" th:field="*{supplier}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">桁架轨道：</label>
                <div class="col-sm-8">
                    <input name="truss" th:field="*{truss}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">桁架电控：</label>
                <div class="col-sm-8">
                    <input name="trusscontrol" th:field="*{trusscontrol}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">创建日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="installtime" th:value="${#dates.format(cmsClubStrip.installtime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">靶人平板：</label>
                <div class="col-sm-8">
                    <input name="tablet" th:field="*{tablet}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">靶人：</label>
                <div class="col-sm-8">
                    <input name="target" th:field="*{target}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">集线盒：</label>
                <div class="col-sm-8">
                    <input name="box" th:field="*{box}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关节电机：</label>
                <div class="col-sm-8">
                    <input name="driver" th:field="*{driver}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">激光传感器：</label>
                <div class="col-sm-8">
                    <input name="laser" th:field="*{laser}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">倾角传感器：</label>
                <div class="col-sm-8">
                    <input name="tilt" th:field="*{tilt}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">接近开关：</label>
                <div class="col-sm-8">
                    <input name="proximity" th:field="*{proximity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">摄像头：</label>
                <div class="col-sm-8">
                    <input name="camera" th:field="*{camera}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">机械手臂：</label>
                <div class="col-sm-8">
                    <input name="arm" th:field="*{arm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">激光传感器编号：</label>
                <div class="col-sm-8">
                    <input name="laserid" th:field="*{laserid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">距离：</label>
                <div class="col-sm-8">
                    <input name="dis" th:field="*{dis}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">x轴角度：</label>
                <div class="col-sm-8">
                    <input name="xangle" th:field="*{xangle}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">y轴角度：</label>
                <div class="col-sm-8">
                    <input name="yangle" th:field="*{yangle}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">z轴角度：</label>
                <div class="col-sm-8">
                    <input name="zangle" th:field="*{zangle}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">x轴加速度：</label>
                <div class="col-sm-8">
                    <input name="xacc" th:field="*{xacc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">y轴加速度：</label>
                <div class="col-sm-8">
                    <input name="yacc" th:field="*{yacc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">z轴加速度：</label>
                <div class="col-sm-8">
                    <input name="zacc" th:field="*{zacc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关节电机角度：</label>
                <div class="col-sm-8">
                    <input name="driverangle" th:field="*{driverangle}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">桁架电控位置：</label>
                <div class="col-sm-8">
                    <input name="trussloc" th:field="*{trussloc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">桁架电控速度：</label>
                <div class="col-sm-8">
                    <input name="trussv" th:field="*{trussv}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">接近开关状态：</label>
                <div class="col-sm-8">
                    <input name="input01" th:field="*{input01}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平板版本号：</label>
                <div class="col-sm-8">
                    <input name="tabletver" th:field="*{tabletver}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平板程序名称：</label>
                <div class="col-sm-8">
                    <input name="tabletsoftware" th:field="*{tabletsoftware}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平板上传时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="tabletuploadtime" th:value="${#dates.format(cmsClubStrip.tabletuploadtime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平板升级时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="tabletupgradestime" th:value="${#dates.format(cmsClubStrip.tabletupgradestime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平板离线时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="tabletofflinetime" th:value="${#dates.format(cmsClubStrip.tabletofflinetime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平板开机时长：</label>
                <div class="col-sm-8">
                    <input name="servicetime" th:field="*{servicetime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平板故障时长：</label>
                <div class="col-sm-8">
                    <input name="failuretime" th:field="*{failuretime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">累计运行时长：</label>
                <div class="col-sm-8">
                    <input name="runningtime" th:field="*{runningtime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">累计运行距离：</label>
                <div class="col-sm-8">
                    <input name="runningdis" th:field="*{runningdis}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剑道状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('club_jd_status')}">
                        <input type="radio" th:id="${'Dstripstatus_' + dict.dictCode}" name="Dstripstatus" th:value="${dict.dictValue}" th:field="*{Dstripstatus}">
                        <label th:for="${'Dstripstatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剑道长度：</label>
                <div class="col-sm-8">
                    <input name="striplength" th:field="*{striplength}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剑道照片：</label>
                <div class="col-sm-8">
                    <input name="Dstrippic" th:field="*{Dstrippic}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "club/strip";
        $("#form-strip-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-strip-edit').serialize());
            }
        }

        $("input[name='installtime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='tabletuploadtime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='tabletupgradestime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='tabletofflinetime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>